/*
 * @Author: Drc
 * @Date: 2020-06-16 13:34:42
 * @LastEditors: Drc
 * @LastEditTime: 2021-09-22 10:19:41
 */
import React from 'react'
import {View, ViewProps} from 'react-native'
import Theme from '@path/config/theme'

interface ThemeViewProps extends ViewProps {
  children: any
}

const ThemeView = (props: ThemeViewProps) => {
  const {style, children} = props
  return <View style={[{backgroundColor: Theme.getThemeColor('bg')}, style]}>{children}</View>
}

export default ThemeView
